home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / c-lang / strmc105.lha / StormC-Demo / INCLUDE / clib / gadtools_protos.h < prev    next >
C/C++ Source or Header  |  1996-01-02  |  3KB  |  98 lines

  1. #ifndef  CLIB_GADTOOLS_PROTOS_H
  2. #define  CLIB_GADTOOLS_PROTOS_H
  3.  
  4. /*
  5. **    $VER: gadtools_protos.h 39.2 (24.3.92)
  6. **    Includes Release 40.15
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17. #ifndef  INTUITION_INTUITION_H
  18. #include <intuition/intuition.h>
  19. #endif
  20. #ifndef  UTILITY_TAGITEM_H
  21. #include <utility/tagitem.h>
  22. #endif
  23. #ifndef  LIBRARIES_GADTOOLS_H
  24. #include <libraries/gadtools.h>
  25. #endif
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31. /*--- functions in V36 or higher (Release 2.0) ---*/
  32.  
  33. /* Gadget Functions */
  34.  
  35. struct Gadget *CreateGadgetA( unsigned long kind, struct Gadget *gad,
  36.     struct NewGadget *ng, struct TagItem *taglist );
  37. struct Gadget *CreateGadget( unsigned long kind, struct Gadget *gad,
  38.     struct NewGadget *ng, Tag tag1, ... );
  39. void FreeGadgets( struct Gadget *gad );
  40. void GT_SetGadgetAttrsA( struct Gadget *gad, struct Window *win,
  41.     struct Requester *req, struct TagItem *taglist );
  42. void GT_SetGadgetAttrs( struct Gadget *gad, struct Window *win,
  43.     struct Requester *req, Tag tag1, ... );
  44.  
  45. /* Menu functions */
  46.  
  47. struct Menu *CreateMenusA( struct NewMenu *newmenu, struct TagItem *taglist );
  48. struct Menu *CreateMenus( struct NewMenu *newmenu, Tag tag1, ... );
  49. void FreeMenus( struct Menu *menu );
  50. BOOL LayoutMenuItemsA( struct MenuItem *firstitem, APTR vi,
  51.     struct TagItem *taglist );
  52. BOOL LayoutMenuItems( struct MenuItem *firstitem, APTR vi, Tag tag1, ... );
  53. BOOL LayoutMenusA( struct Menu *firstmenu, APTR vi, struct TagItem *taglist );
  54. BOOL LayoutMenus( struct Menu *firstmenu, APTR vi, Tag tag1, ... );
  55.  
  56. /* Misc Event-Handling Functions */
  57.  
  58. struct IntuiMessage *GT_GetIMsg( struct MsgPort *iport );
  59. void GT_ReplyIMsg( struct IntuiMessage *imsg );
  60. void GT_RefreshWindow( struct Window *win, struct Requester *req );
  61. void GT_BeginRefresh( struct Window *win );
  62. void GT_EndRefresh( struct Window *win, long complete );
  63. struct IntuiMessage *GT_FilterIMsg( struct IntuiMessage *imsg );
  64. struct IntuiMessage *GT_PostFilterIMsg( struct IntuiMessage *imsg );
  65. struct Gadget *CreateContext( struct Gadget **glistptr );
  66.  
  67. /* Rendering Functions */
  68.  
  69. void DrawBevelBoxA( struct RastPort *rport, long left, long top, long width,
  70.     long height, struct TagItem *taglist );
  71. void DrawBevelBox( struct RastPort *rport, long left, long top, long width,
  72.     long height, Tag tag1, ... );
  73.  
  74. /* Visuals Functions */
  75.  
  76. APTR GetVisualInfoA( struct Screen *screen, struct TagItem *taglist );
  77. APTR GetVisualInfo( struct Screen *screen, Tag tag1, ... );
  78. void FreeVisualInfo( APTR vi );
  79.  
  80. /*--- functions in V39 or higher (Release 3) ---*/
  81.  
  82. LONG GT_GetGadgetAttrsA( struct Gadget *gad, struct Window *win,
  83.     struct Requester *req, struct TagItem *taglist );
  84. LONG GT_GetGadgetAttrs( struct Gadget *gad, struct Window *win,
  85.     struct Requester *req, Tag tag1, ... );
  86.  
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90.  
  91. #ifdef STORMPRAGMAS
  92. #ifndef _INCLUDE_PRAGMA_GADTOOLS_LIB_H
  93. #include <pragma/gadtools_lib.h>
  94. #endif
  95. #endif
  96.  
  97. #endif     /* CLIB_GADTOOLS_PROTOS_H */
  98.